<?php
require_once("groupView.php");
require_once(CORE_DIR.'groupModel.php');

class getAction extends authAction{

	function __construct(){
		$this->view = new groupView();
	}

	public function run($get, $post, $viewtype) {
		parent::run($get,$post,$viewtype);
		
		$gModel = new groupModel();			
		
		$groups = $gModel->getGroups();	

		$this->view->setProperty("groups", $groups);
		$this->view->showGetGroups();
		
	}
}
?>